package com.aote.controller;

import com.aote.pojo.User;
import com.aote.service.UserService;

public class UserController {
    private UserService userService;
    private User user;  //代替用户传入的数据

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public void addUser(){
        userService.addUser(user);
    }
}
